package com.ruoyi.htzj.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 扫码记录表，存储用户的扫码记录
 * @TableName htzj_scan_records
 */
@TableName(value ="htzj_scan_records")
@Data
public class HtzjScanRecords implements Serializable {
    /**
     * 扫码记录ID，主键
     */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    /**
     * 街道ID，外键关联htzj_streets表
     */
    @TableField(value = "street_id")
    private Integer streetId;

    /**
     * 扫码时间，默认为数据创建时间
     */
    @TableField(value = "scan_time")
    private Date scanTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
